Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add russian OGRN #459

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Conversation

nvmbrasserie
Copy link

@nvmbrasserie nvmbrasserie commented Nov 20, 2024

Add OGRN (Russian Primary State Registration Number) validation and formatting

Added a new module for validating and formatting Russian OGRN numbers.
Implemented validation for OGRN length, checksum, and federal subject code.
Added a normalization function to format OGRN into valid 13- or 15-digit numbers.
Introduced a helper function to calculate the OGRN control digit.
Added basic usage examples and doctests for OGRN validation.

https://docs.trellix.com/bundle/data-loss-prevention-11.10.x-classification-definitions-reference-guide/page/GUID-945B4343-861E-4A57-8E60-8B6028871BA1.html

@nvmbrasserie nvmbrasserie marked this pull request as draft November 20, 2024 14:29
@nvmbrasserie nvmbrasserie marked this pull request as ready for review November 21, 2024 11:27
@nvmbrasserie nvmbrasserie changed the title ogrn validation Add russian OGRN Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant